package com.qingke.OMS.Command.Imp;

import com.qingke.OMS.Command.Command;
import com.qingke.OMS.Dao.GoodsDao;
import com.qingke.OMS.Unit.Console;

public class deleteGoods implements Command{

	@Override
	public void execute() {
		 GoodsDao gdao=new GoodsDao();
		 int pid= Console.askUserInputInt("please write goods' pid");
		 gdao.deleteByPid(pid);
//		 List<Goods> goods = new ArrayList<>();
//			goods = gdao.deleteByPid(pid);
//			for (Goods gs : goods) {
//				System.out.println(gs);
//			}
	}

}
